#include "MaterialFactory.h"

using namespace Stray;
using namespace Stray::Core;
using namespace Stray::Resource;

MaterialPtr MaterialFactory::createMaterial(const ResourceID& id)
{
	return MaterialPtr(new Material(id));
}

MaterialPtr MaterialFactory::createMaterial(const ResourceID& id, const MaterialCreationParam& param)
{
	MaterialPtr spMaterial = createMaterial(id);

	spMaterial->build(param);

	return spMaterial;
}

void MaterialFactory::buildMaterial(const MaterialPtr& spMaterial, const MaterialCreationParam& param)
{
	spMaterial->build(param);
}
